Platform Core .NET Assemblies API
GetCultureValueWithFallback Method
See Also  Send Feedback
Terrasoft.Common Namespace > LocalizableValue<T> Class : GetCultureValueWithFallback Method
culture
Culture.
throwIfNoManager
Flag that indicates if method has to throw the ItemNotFoundException exception.

Glossary Item Box

Gets the localized value of the specified type for the specified culture. If value for the specified culture is not found, default culture value is returned. Depending on the value of the throwIfNoManager parameter method may generate an exception of the ItemNotFoundException type, unless a resource manager is set for this localized value.

Syntax

 
C#
 
 

Parameters

culture
Culture.
throwIfNoManager
Flag that indicates if method has to throw the ItemNotFoundException exception.

Return Value

Localized value of specified type.

Exceptions

ExceptionDescription
ItemNotFoundExceptionIf throwIfNoManager equals true and manager is not set.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.